package com.rex.sample.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.rex.sample.dao.SampleDao;
import com.rex.sample.model.SampleModel;


@Service("sampleService")
public class SampleService {
	
	@Autowired
	SampleDao sampleDao;
	

	public String sayHello(){
		
		return sampleDao.sayHello();
	}

	public void addHello(String hello){

		SampleModel m = new SampleModel();
		m.setSampleName(hello);
		sampleDao.addHello(m);
	}



}
